package com.hpf.lease.web.admin.service;

import com.hpf.lease.model.bean.GraphInfo;
import io.minio.errors.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.List;

public interface FileService {
    boolean upload(MultipartFile file);
    boolean deleteImage(String url) throws ServerException, InsufficientDataException, ErrorResponseException, IOException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException ;

    void deleteImageBatch(List<GraphInfo> graphList);
}
